package cn.edu.wtbu.wtbu_music_server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName musiclist
 */
@Schema(description = "歌单详情对象")
@NoArgsConstructor  //添加无参构造器
@TableName(value ="musiclist")
@Data
public class Musiclist implements Serializable {
    /**
     * 歌单详情id
     */
    @Schema(description = "歌单详情id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 歌曲id
     */
    @Schema(description = "歌曲id")
    private Integer mid;

    /**
     * 歌单id
     */
    @Schema(description = "歌单id")
    private Integer listid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 包含歌曲id和歌单id的构造函数
     * @param mid
     * @param listid
     */
    public Musiclist(Integer mid,Integer listid){
        this.mid = mid;
        this.listid = listid;
    }
}